package com.intelligent.health.setmeal.feign;

import com.intelligent.health.setmeal.feign.fallback.SetMealFallBackFactory;
import entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;


/**
 * Created with IntelliJ IDEA.
 *
 * @Author: torlesse-liang
 * @Date: 2022/03/26/1:20
 * @Description: SetMealFeignClient
 */
@Component
@FeignClient(name = "health-setmeal-serv", fallbackFactory = SetMealFallBackFactory.class)
public interface SetMealFeignClient {

    /**
     * 查询套餐数据 for export Excel
     *
     * @param hashMap
     * @return
     */
    @PostMapping("/checkitem/all/excel")
    R queryCheckItems(@RequestBody HashMap<String, Object> hashMap);

    /**
     * 查询套餐数据 for export Excel
     *
     * @param hashMap
     * @return
     */
    @PostMapping("/checkgroup/all/excel")
    R queryCheckGroups(@RequestBody HashMap<String, Object> hashMap);

    /**
     * 查询套餐数据 for export Excel
     *
     * @param hashMap
     * @return
     */
    @PostMapping("/setmeal/all/excel")
    R querySetMeals(@RequestBody HashMap<String, Object> hashMap);
}
